package com.example.demo.Service.ServiceImpl;

import com.example.demo.Dao.UserInfoRepository;
import com.example.demo.Entity.UserInfo;
import com.example.demo.Service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserInfoRepository userInfoRepository;
    @Override
    public UserInfo findByUserName(String username) {
        return userInfoRepository.findByUserName(username);
    }
}
